﻿using System;

namespace LiveTiss.Classes
{
    public class CustomValidation
    {
        private string message;
        public CustomValidation(string message)
        {
            this.message = message;
        }
        public bool ShowErrorMessage
        {
            get;
            set;
        }
        public object ValidationError
        {
            get
            {
                return null;
            }
            set
            {
                if (ShowErrorMessage)
                {
                    //throw new ValidationException(message);
                }
            }
        }
    }

    public class ValidationException : Exception
    {
        public ValidationException() { }
        public ValidationException(string message) : base(message) { }
        public ValidationException(string message, Exception inner) : base(message, inner) { }
    }
}
